﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using AssessmentTool.PresentationLogic.Controllers;

namespace AssessmentTool.Controls
{
    public partial class Profili : UserControl
    {
        ProfiliController controller;
        public Profili()
        {
            InitializeComponent();
            controller = new ProfiliController(this);
        }
        public void addProfilo(ProfiloButton button)
        {
            ProfiliContainer.Children.Add(button);
            
        }
        internal void clearProfili()
        {
            ProfiliContainer.Children.Clear();
        }
        public void setTitoloProfilo(String text)
        {
            selectedProfiloTitolo.Text = text;
        }


        internal void noRadarMessage()
        {
            NoRadarMessage.Visibility = Visibility.Visible;
            gridProfilo.Visibility = Visibility.Collapsed;
        }

        internal void visualizzaRadar()
        {
            NoRadarMessage.Visibility = Visibility.Collapsed;
           
            gridProfilo.Visibility = Visibility.Visible;
            menuProfilo.SelectedIndex = 0;
            
        }

        private void Image_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            controller.exportProfilo();
        }

        
    }
}
